home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / appletalk / uab.shar / if_desc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-12  |  1.9 KB  |  65 lines

  1. /*
  2.  * $Author: cck $ $Date: 88/09/14 10:19:42 $
  3.  * $Header: /src/local/mac/cap/etalk/RCS/if_desc.h,v 1.3 88/09/14 10:19:42 cck Rel $
  4.  * $Revision: 1.3 $
  5. */
  6.  
  7. /*
  8.  * if_desc.h - interface description
  9.  *
  10.  *  describes parameters for a interface
  11.  *
  12.  * Copyright (c) 1988 by The Trustees of Columbia University 
  13.  *  in the City of New York.
  14.  *
  15.  * Permission is granted to any individual or institution to use,
  16.  * copy, or redistribute this software so long as it is not sold for
  17.  * profit, provided that this notice and the original copyright
  18.  * notices are retained.  Columbia University nor the author make no
  19.  * representations about the suitability of this software for any
  20.  * purpose.  It is provided "as is" without express or implied
  21.  * warranty.
  22.  *
  23.  *
  24.  * Edit History:
  25.  *
  26.  *  Sept 8, 1988  CCKim Created
  27.  *
  28. */
  29.  
  30. #ifndef _IF_DESC_INCLUDED
  31. #define _IF_DESC_INCLUDED "yes"
  32. # include "mpxddp.h"
  33. /*
  34.  * description of a supported LAP type 
  35.  *
  36. */
  37. typedef struct lap_description {
  38.   char *ld_name;        /* name of lap  */
  39.   char **ld_key;        /* array of keywords to use for lap type */
  40.   int ld_wants_data;        /* needs more than key */
  41.   int (*ld_init_routine)();    /* (id, async) */
  42.   int (*ld_stats_routine)();    /* (fd, id) */
  43.   int (*ld_dump_routine)();    /* (fd, id) */
  44. } LDESC_TYPE;
  45.  
  46. /*
  47.  * an interface description (port description)
  48.  *
  49.  * Call ld_init_routine with this (+ async flag if you want to run
  50.  *   async if possible) 
  51.  * All fields except id_ifuse are not touched by ld_init_routine
  52. */
  53. typedef struct interface_description {
  54.   struct lap_description *id_ld; /* lap description */
  55.   char *id_intf;        /* interface name */
  56.   int id_intfno;        /* interface # */
  57.   struct mpxddp_module *id_local; /* local delivery */
  58.   int id_isabridge;        /* flag */
  59.   int id_network;        /* network number (net order) */
  60.   byte *id_zone;        /* zone name (pstring) */
  61.   struct interface_description *id_next; /* next in list */
  62.   caddr_t id_ifuse;        /* interface use */
  63. } IDESC_TYPE;
  64. #endif
  65.